package asia.yuanding.wechat.web.controller;

import asia.yuanding.wechat.system.util.R;
import asia.yuanding.wechat.web.entity.SessionList;
import asia.yuanding.wechat.web.mapper.SessionListMapper;
import asia.yuanding.wechat.web.service.SessionListService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName: SessionController
 * @Author: YuanDing
 * @Date: 2025/8/10 11:17
 * @Description:
 */

@RestController
@RequestMapping("session")
public class SessionController {


    @Resource
    private SessionListService sessionListService;

    @PostMapping
    public R createSession(@RequestBody SessionList sessionList) {
        sessionListService.createSession(sessionList);
        return R.ok();
    }

}
